package jonctions;

import java.util.ArrayList;

import rail.Rail;

public class Butee extends Jonction {

	public Butee(int id) {
		super.id = id;
		if (id != -1) {
			super.listRail = new ArrayList<Rail>();
			for (int i = 0; i < 1; i++) {
				Rail rail = new Rail(id + i);
				rail.setJonction1(this);
				super.listRail.add(rail);
			}
			System.out.println("La butee numero" + super.id + " a ete creee");
		}
	}

}
